<?php
/**
 * @name IndexController
 * @author asus-pc\asus
 * @desc 基础控制器
 * @see http://www.php.net/manual/en/class.yaf-controller-abstract.php
 */
use Common\Restful;
class BaseController extends Yaf\Controller_Abstract {
	protected $_db;
	public function init(){
		//$this->getView()->setScriptPath(APPLICATION_PATH."/template");
	}
	
	public function pdoAction(){
		$this->_db = new PDO('127.0.0.1', 'root', 'root', $options);
	}
	
	/**
	 * http请求状态码
	 *
	 * @var        array
	 */
	private $_statusCodes = [
	200 => 'OK',
	204 => 'No Content',
	400 => 'Bad Request',
	401 => 'Unauthorized',
	403 => 'Forbidden',
	404 => 'Not Found',
	405 => 'Method Not Allowed',
	500 => 'Server Internet Error'
			];
}
